package com.yjd.comm.borrow.model;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.borrow.enums.InvestChannelEnum;

/**
 * <b>description</b>：债权转让记录模型<br>
 * <b>time</b>：2014-11-17 11:01:21 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public class CreditorTransferModel extends Model {

	/**
	 * @Fields serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	private Long id;
	/**
	 * 转让人id
	 */
	private Long user_id;
	/**
	 * 购买者id
	 */
	private Long buy_user_id;
	/**
	 * 标的id
	 */
	private Long borrow_id;
	/**
	 * 标的类别
	 */
	private Integer qclass;
	/**
	 * 还款日期
	 */
	private Long repayday;
	/**
	 * 原债权id
	 */
	private Long creditor_id;
	/**
	 * 转让开始时间
	 */
	private Long starttime;
	/**
	 * 剩余期数
	 */
	private Integer limit_surplus;
	/**
	 * 剩余天数
	 */
	private Integer days_surplus;
	/**
	 * 成交债权价值
	 */
	private Double value;
	/**
	 * 成交利率
	 */
	private Double apr;
	/**
	 * 原债权投标金额
	 */
	private Double invest;
	/**
	 * 原债权待回收金额
	 */
	private Double recovery;
	/**
	 * 原债权待回收本金
	 */
	private Double capital;
	/**
	 * 原债权已回收利润
	 */
	private Double profit;

	/**
	 * 折让费
	 */
	private Double discount;

	/**
	 * 管理费
	 */
	private Double manage;

	/**
	 * 购买价格
	 */
	private Double price;
	/**
	 * 转让开始时间
	 */
	private Long transferstarttime;
	/**
	 * 转让结束时间
	 */
	private Long transferendtime;
	/**
	 * 成交时间
	 */
	private Long oktime;
	/**
	 * 状态 0 转让时效过期 2 转让中 3 已成交 1 已撤销
	 */
	private Integer status;

	/**
	 * 购买人购买债权中使用的红包
	 */
	private Double reward;
	
	/**
	 * 购买人购买债权中使用的代金券
	 */
	private Double volume;
	
	/**
	 * 投资渠道
	 */
	private Integer channel = InvestChannelEnum.PIC.getValue();

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public Long getBuy_user_id() {
		return buy_user_id;
	}

	public void setBuy_user_id(Long buy_user_id) {
		this.buy_user_id = buy_user_id;
	}

	public Long getBorrow_id() {
		return borrow_id;
	}

	public void setBorrow_id(Long borrow_id) {
		this.borrow_id = borrow_id;
	}

	public Integer getQclass() {
		return qclass;
	}

	public void setQclass(Integer qclass) {
		this.qclass = qclass;
	}

	public Long getRepayday() {
		return repayday;
	}

	public void setRepayday(Long repayday) {
		this.repayday = repayday;
	}

	public Long getCreditor_id() {
		return creditor_id;
	}

	public void setCreditor_id(Long creditor_id) {
		this.creditor_id = creditor_id;
	}

	public Long getStarttime() {
		return starttime;
	}

	public void setStarttime(Long starttime) {
		this.starttime = starttime;
	}

	public Integer getLimit_surplus() {
		return limit_surplus;
	}

	public void setLimit_surplus(Integer limit_surplus) {
		this.limit_surplus = limit_surplus;
	}

	public Integer getDays_surplus() {
		return days_surplus;
	}

	public void setDays_surplus(Integer days_surplus) {
		this.days_surplus = days_surplus;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public Double getApr() {
		return apr;
	}

	public void setApr(Double apr) {
		this.apr = apr;
	}

	public Double getInvest() {
		return invest;
	}

	public void setInvest(Double invest) {
		this.invest = invest;
	}

	public Double getRecovery() {
		return recovery;
	}

	public void setRecovery(Double recovery) {
		this.recovery = recovery;
	}

	public Double getCapital() {
		return capital;
	}

	public void setCapital(Double capital) {
		this.capital = capital;
	}

	public Double getProfit() {
		return profit;
	}

	public void setProfit(Double profit) {
		this.profit = profit;
	}

	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Double getManage() {
		return manage;
	}

	public void setManage(Double manage) {
		this.manage = manage;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Long getTransferstarttime() {
		return transferstarttime;
	}

	public void setTransferstarttime(Long transferstarttime) {
		this.transferstarttime = transferstarttime;
	}

	public Long getTransferendtime() {
		return transferendtime;
	}

	public void setTransferendtime(Long transferendtime) {
		this.transferendtime = transferendtime;
	}

	public Long getOktime() {
		return oktime;
	}

	public void setOktime(Long oktime) {
		this.oktime = oktime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Double getReward() {
		return reward;
	}

	public void setReward(Double reward) {
		this.reward = reward;
	}

	public Double getVolume() {
		return volume;
	}

	public void setVolume(Double volume) {
		this.volume = volume;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

}
